<template>
	<div>
		<div to="address" class="pay-address" v-for="(evals,index) in evalList">
			<p class="address-box">
				<span class="name">用户名：{{evals.user_real_name}}</span>
				<span class="time" style="float: right;">{{evals.time}}</span>
			</p>
			<p class="address-details">
				{{evals.ly}}
			</p>
		</div>
	</div>
</template>

<script>
	import state from '../../../vuex/state.js';
	export default {
		name: "evaluate",
		data() {
			return {
				evalList: []
			}
		},
		created(){
			var _this = this;
			_this.$http.get('/api/eval/show_eval', {
				params: {
					goodsId: this.$route.query.goodsId
				}
			})
			.then(res => {
				console.log(res)
				_this.evalList = res.body.data
				console.log(_this.evalList)
			});
			// console.log(this.$route.query.goodsId);
		}
	}
</script>

<style lang="stylus" scoped>
	.pay-address {
		width: 100%;
		height: 3.3rem;
		background: url('https://shopstatic.vivo.com.cn/vivoshop/wap/dist/images/prod/bg-addr-box-line_d380baa.png') #fff left bottom repeat-x; // shopstatic.vivo.com.cn/vivoshop/wap/dist/images/prod/bg-addr-box-line_d380baa.png) #fff left bottom repeat-x;
		background-size: 1.6rem;
		// padding-top: 1.45rem;
		display: block;
	
		.address-box {
			width: 87%;
			margin: auto;
			font-size: 0.4rem;
			padding-top: 0.3rem;
			padding-bottom: 0.3rem;
	
			
		}
	
		.address-details {
			width: 87%;
			margin: auto;
			color: #666;
			font-size: 0.38rem;
		}
	}
</style>
